package com.sherlochao.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sherlochao.dao.CommentDao;
import com.sherlochao.model.Comment;
import com.sherlochao.service.CommentService;

@Transactional
@Service("commentService")
public class CommentServiceImpl implements CommentService{
	
	@Resource
	private CommentDao commentDao;

	@Override
	public Comment get(String id) {
		return commentDao.get(id);
	}

	@Override
	public String save(Comment entity) {		
		return commentDao.save(entity);
	}
	
	

}
